﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class DictionaryExtension
{
    public static Tvalue TryGet<TKey, Tvalue>(this Dictionary<TKey, Tvalue> dict, TKey key)
    {
        Tvalue value;
        dict.TryGetValue(key, out value);
        return value;
    }
}
